package og.example.service;
import og.example.entity.Class;
import og.example.dao.ClassDataProvider;
import og.example.dao.ClassDataProvider;
import java.util.List;

public class ClassService {
    private ClassDataProvider ClassDataProvider = new ClassDataProvider();
    public boolean classAdd(String className) {
        return ClassDataProvider.classAdd(className);
    }

    public boolean classDelete(String className) {
        return ClassDataProvider.classDelete(className);
    }

    public boolean classUpdate(String className, String newClassName) {
        return ClassDataProvider.classUpdate(className, newClassName);
    }
    public List<Class> classQuery() {
        return ClassDataProvider.classQuery();
    }
}

